/**
 * 
 */
package com.surelution.cppei.weixin.gate

import com.surelution.whistle.core.NewsAttribute

/**
 * @author <a href="mailto:guangzong.syu@gmail.com">guangzong</a>
 *
 */
class MyCardAction extends CppeiBaseAction {

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#accept()
	 */
	@Override
	public boolean accept() {
		isMenu("MY-CARD")
	}

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#execute()
	 */
	@Override
	public void execute() {
		def na = new NewsAttribute()
		na.add("您的加油卡", "触摸此处查看已经绑定的加油卡详情，或者，绑定加油卡", "http://${rootPath}/app-images/card.jpg", "http://${rootPath}/subscriberGascard/mobileShow/${subscriber.id}")
		put(na)
	}

}
